package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试题明细选项
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QuestionChoose extends Model<QuestionChoose> {

    private static final long serialVersionUID=1L;

    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试题ID
     */
    private Integer questionId;

    /**
     * 明细ID
     */
    private Integer detailId;

    /**
     * 选项
     */
    private String choose;

    /**
     * 选项对应内容
     */
    private String solution;

    /**
     * 是否为正确答案 1-是 2-否
     */
    private Integer isAnswer;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
